package com.njtoyo.taxi.admin.rest.presenter.business.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel("司机服务状态")
public class DriverServiceStatePresenter {
    @ApiModelProperty("车俩状态")
    private Taxi taxi;

    @ApiModelProperty("司机状态")
    private List<Driver> driver;

    @Data
    public static class Taxi {
        @ApiModelProperty("车俩ID")
        private Long id;

        @ApiModelProperty("车牌号")
        private String plateNumber;

        @ApiModelProperty("是否可用")
        private Boolean isAvailable;
    }

    @Data
    public static class Driver {
        @ApiModelProperty("司机id")
        private Long id;

        @ApiModelProperty("司机姓名")
        private String name;

        @ApiModelProperty("司机手机号")
        private String mobileNumber;

        @ApiModelProperty("是否在服务中")
        private Boolean inService;
    }
}
